<script setup></script>

<template>
  <div class="container">
    <div class="wrapper">
      <div class="title">
        <h2>精选作品</h2>
        <img src="@/assets/aboutUs/titlelogo.webp" alt="" />
        <span>作品融入跨学科知识 挥洒孩子们的创造力</span>
      </div>
      <div class="content">
        <div class="workBackground"></div>
        <div class="leftBg"></div>
        <div class="workDesc">
          <h2>D版 《我的世界》</h2>
          <span>作者： 某某某</span>
          <span>地点： 某某某市</span>
          <div class="littleBox">语言：Python</div>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.container {
  padding: 20px 0 100px 0;
  width: 100%;
  background-color: #e7e4e4;
  .wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .title {
      margin: 20px 0;
      width: 100%;
      position: relative;
      display: flex;
      align-items: center;
      flex-direction: column;
      h2 {
        font-size: 36px;
      }
      img {
        position: absolute;
        top: 10px;
      }
      span {
        margin-top: 10px;
        font-size: 14px;
        color: rgb(178, 178, 178);
        line-height: 48px;
        font-weight: normal;
      }
    }
    .content {
      width: 100%;
      height: 582px;
      position: relative;
      .workBackground {
        position: absolute;
        top: 0;
        right: 0;
        width: 870px;
        height: 582px;
        background: url('@/assets/img/achievement/achievementWork.webp')
          no-repeat center/contain;
      }
      .leftBg {
        position: absolute;
        top: 0;
        left: 0;
        width: 90px;
        height: 449px;
        background: url('@/assets/img/achievement/workLeftbg.webp') no-repeat
          center/contain;
      }
      .workDesc {
        background-color: #ffffff;
        z-index: 2;
        position: absolute;
        top: 175px;
        left: 100px;
        padding: 50px 0 50px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 359px;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        h2 {
          height: 40px;
          line-height: 40px;
          font-size: 24px;
        }
        span {
          display: block;
          height: 28px;
          font-size: 12px;
          color: rgb(140, 140, 140);
          line-height: 28px;
        }
        .littleBox {
          margin-top: 20px;
          display: flex;
          justify-content: center;
          align-items: center;
          width: 156px;
          height: 50px;
          background-color: rgb(255, 192, 1);
          color: white;
        }
      }
      .workDesc > * {
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
}
</style>
